<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="common/common::common('表设置')"/>
    <script th:src="@{/static/dev/way.js}" charset="utf-8"></script>
    <script th:src="@{/static/dev/add.js}" charset="utf-8"></script>

    <style>
        .layui-form-item .layui-input-inline {
            width: 300px;
        }

        .layui-form-label {
            width: 180px;
        }

        .layui-input-block {
            margin-left: 210px;
        }

    </style>

</head>
<body class="bg-color">
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12" style="background-color: #FFF; margin-top: 15px">
            <div class="layui-card">
                <div class="layui-card-header">新增表信息</div>
                <div class="layui-card-body" pad15>
                    <form class="layui-form" id="editTableInfoForm">

                        <div class="layui-form-body">


                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>表名称
                                    </label>
                                    <div class="layui-input-inline">
                                        <input type="text" id="tableName" name="tableName"
                                               lay-verify="required" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>功能名
                                    </label>
                                    <div class="layui-input-inline">
                                        <input type="text" id="funcName" name="funcName"
                                               lay-verify="required" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>实体类名称
                                    </label>
                                    <div class="layui-input-inline">
                                        <input type="text" id="clazzName" name="clazzName"
                                               lay-verify="required" autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>作者
                                    </label>
                                    <div class="layui-input-inline">
                                        <input type="text" id="funcAuthor" name="funcAuthor"
                                               lay-verify="required" autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        服务上下文
                                    </label>
                                    <div class="layui-input-inline">
                                        <input type="text" id="contextPath" name="contextPath"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        菜单ID
                                    </label>
                                    <div class="layui-input-inline">
                                        <input type="text" id="menuId" name="menuId"
                                               autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                            </div>


                            <fieldset class="layui-elem-field layui-field-title">
                                <legend>后端</legend>
                            </fieldset>

                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>后端包路径
                                    </label>
                                    <div class="layui-input-inline">
                                        <input type="text" id="rearPackage" name="rearPackage"
                                               lay-verify="required" autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>模块名(路径)
                                    </label>
                                    <div class="layui-input-inline">
                                        <input type="text" id="moduleName" name="moduleName"
                                               lay-verify="required" autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>前后端分离
                                    </label>
                                    <div class="layui-input-inline" id="rearSplitBlock">
                                    </div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>使用DTO/VO模型
                                    </label>
                                    <div class="layui-input-inline" id="rearDddBlock">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>后端模板
                                    </label>
                                    <div class="layui-input-inline" id="tplCategoryBlock">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>Controller 地址
                                    </label>
                                    <div class="layui-input-inline">
                                        <input type="text" id="rearUri" name="rearUri"
                                               lay-verify="required" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>


                            <fieldset class="layui-elem-field layui-field-title">
                                <legend>构建者模式</legend>
                            </fieldset>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>实体类
                                    </label>
                                    <div class="layui-input-inline" id="buildEntityBlock"></div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>查询类
                                    </label>
                                    <div class="layui-input-inline" id="buildQueryBlock"></div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>DTO
                                    </label>
                                    <div class="layui-input-inline" id="buildDtoBlock"></div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>VO
                                    </label>
                                    <div class="layui-input-inline" id="buildVoBlock"></div>
                                </div>

                            </div>

                            <fieldset class="layui-elem-field layui-field-title">
                                <legend>前端</legend>
                            </fieldset>
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>前端包路径
                                    </label>
                                    <div class="layui-input-inline">
                                        <input type="text" id="frontPackage" name="frontPackage"
                                               lay-verify="required" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>UI类型
                                    </label>
                                    <div class="layui-input-inline">
                                        <select name="frontUiStyle" id="frontUiStyle"></select>
                                    </div>
                                </div>

                                <div class="layui-inline">
                                    <label class="layui-form-label">
                                        <span class="required">*</span>浏览器打开方式
                                    </label>
                                    <div class="layui-input-inline">
                                        <select name="iframe" id="iframe"></select>
                                    </div>
                                </div>
                            </div>


                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    备注
                                </label>
                                <div class="layui-input-block">
                                    <textarea id="remarks" name="remarks" class="layui-textarea"></textarea>
                                </div>
                            </div>
                        </div>


                        <div style="text-align:center;margin-top: 20px;margin-bottom: 30px;">
                            <button type="button" class="button-sub" id="saveTableInfo"
                                    lay-submit lay-filter="saveTableInfo">提交
                            </button>
                            <button type="button" class="button-close" onclick="goBackPreviousPage()">返回</button>
                        </div>
                    </form>

                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
